package com.liang.demo02;

public class Client {
    public static void main(String[] args) {
        //真实角色
        UserServiceImpl userService = new UserServiceImpl();
        //代理角色
        UserServiceProxy proxy = new UserServiceProxy();

        //设置要代理的对象
        proxy.setUserService(userService);

        proxy.add();
        proxy.select();
    }
}
